package com.sylingd.blog.activity

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.sylingd.blog.lib.Config

class SchemeUrlActivity : AppCompatActivity() {

	override fun onCreate(savedInstanceState: Bundle?) {
		super.onCreate(savedInstanceState)

		val data = intent.dataString

		if (Config.isArticle(data)) {
			ReadActivity.launch(this, Config.getArticleId(data))
		}

		finish()
	}
}
